import request from '@/utils/request'

// 查询国家运营商代码列表
export function listCountryCode(query) {
  return request({
    url: '/business/countryCode/list',
    method: 'get',
    params: query
  })
}

// 查询国家运营商代码详细
export function getCountryCode(id) {
  return request({
    url: '/business/countryCode/' + id,
    method: 'get'
  })
}

// 新增国家运营商代码
export function addCountryCode(data) {
  return request({
    url: '/business/countryCode',
    method: 'post',
    data: data
  })
}

// 修改国家运营商代码
export function updateCountryCode(data) {
  return request({
    url: '/business/countryCode',
    method: 'put',
    data: data
  })
}

// 删除国家运营商代码
export function delCountryCode(id) {
  return request({
    url: '/business/countryCode/' + id,
    method: 'delete'
  })
}
